#include "component_l298n.h"
#include "component_ir.h"

#include "component_dht11.h"
#include "component_ultrasonic.h"
#include "component_oled_ssd1306_ascii.h"

void setup_components() {
  setup_dht11();
  setup_ultrasonic();
  setup_oled();

  setup_l298n();
  setup_ir();  // must after the oled

  delay(1000);
}

void loop_components() {

  loop_dht11();
  loop_ultrasonic();
  loop_oled();

  loop_l298n();
  loop_ir();

  delay(20);
}
